This forum is closed to new posts and
responses. The content has been migrated to the Digital Solutions Community. Please join us there for new content as well as this content. For customer support, please visit the official HCL customer support channels below:
Then you can check what rtitem looks like, and see if you have any attachments/embedded objects, and check the values of the different objects/variables.
I copied and pasted your code into a test database, and it worked fine, I did not get that error message (using Notes 8.5.3).
A couple of suggestions:
I would declare all variables in the beginning, before you execute any code or assign variables/objects. It is just so much easier to read when you have all declarations in one place.
In addition, you are using a variable called smtpAddress, but it is not used for that purpose, but to hold the name of the attachment. Use descriptive names for variables.
I personally use the convention to always name fields using CamelCase, not all lower case like you do. And even if the field name in GetFirstItem() is case-insensitive, I make sure I capitalize the field name exactly like it is on the form.
Finally, a suggestion that is really not for you, but your posting reminded me about it: I suggest that everyone use english variable names and (if possible) form names. That will make it easier for anyone that need help here in the forums.
If you post in Spanish, Portugese, Swedish or any other language than English, you will automatically cut down the number of people who will understand your posting or your code.
So for anyone who want as many responses as possible, make it easy for everyone to read the code (and posting).
Feedback response number WEBB937TVM created by ~Dan Kikiterobu on 12/21/2012